3.46 \(\int \frac {\cos (\sqrt {x})}{\sqrt {x}} \, dx\)

Optimal. Leaf size=8 \[ 2 \sin \left (\sqrt {x}\right ) \]

[Out]

2*sin(x^(1/2))

________________________________________________________________________________________

Rubi [A]  time = 0.01, antiderivative size = 8, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {3380, 2637} \[ 2 \sin \left (\sqrt {x}\right ) \]

Antiderivative was successfully verified.

[In]

Int[Cos[Sqrt[x]]/Sqrt[x],x]

[Out]

2*Sin[Sqrt[x]]

Rule 2637

Int[sin[Pi/2 + (c_.) + (d_.)*(x_)], x_Symbol] :> Simp[Sin[c + d*x]/d, x] /; FreeQ[{c, d}, x]

Rule 3380

Int[((a_.) + Cos[(c_.) + (d_.)*(x_)^(n_)]*(b_.))^(p_.)*(x_)^(m_.), x_Symbol] :> Dist[1/n, Subst[Int[x^(Simplif
y[(m + 1)/n] - 1)*(a + b*Cos[c + d*x])^p, x], x, x^n], x] /; FreeQ[{a, b, c, d, m, n, p}, x] && IntegerQ[Simpl
ify[(m + 1)/n]] && (EqQ[p, 1] || EqQ[m, n - 1] || (IntegerQ[p] && GtQ[Simplify[(m + 1)/n], 0]))

Rubi steps

\begin {align*} \int \frac {\cos \left (\sqrt {x}\right )}{\sqrt {x}} \, dx &=2 \operatorname {Subst}\left (\int \cos (x) \, dx,x,\sqrt {x}\right )\\ &=2 \sin \left (\sqrt {x}\right )\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.00, size = 8, normalized size = 1.00 \[ 2 \sin \left (\sqrt {x}\right ) \]

Antiderivative was successfully verified.

[In]

Integrate[Cos[Sqrt[x]]/Sqrt[x],x]

[Out]

2*Sin[Sqrt[x]]

________________________________________________________________________________________

fricas [A]  time = 0.78, size = 6, normalized size = 0.75 \[ 2 \, \sin \left (\sqrt {x}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(x^(1/2))/x^(1/2),x, algorithm="fricas")

[Out]

2*sin(sqrt(x))

________________________________________________________________________________________

giac [A]  time = 0.38, size = 6, normalized size = 0.75 \[ 2 \, \sin \left (\sqrt {x}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(x^(1/2))/x^(1/2),x, algorithm="giac")

[Out]

2*sin(sqrt(x))

________________________________________________________________________________________

maple [A]  time = 0.02, size = 7, normalized size = 0.88 \[ 2 \sin \left (\sqrt {x}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cos(x^(1/2))/x^(1/2),x)

[Out]

2*sin(x^(1/2))

________________________________________________________________________________________

maxima [A]  time = 0.90, size = 6, normalized size = 0.75 \[ 2 \, \sin \left (\sqrt {x}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(x^(1/2))/x^(1/2),x, algorithm="maxima")

[Out]

2*sin(sqrt(x))

________________________________________________________________________________________

mupad [B]  time = 0.03, size = 6, normalized size = 0.75 \[ 2\,\sin \left (\sqrt {x}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cos(x^(1/2))/x^(1/2),x)

[Out]

2*sin(x^(1/2))

________________________________________________________________________________________

sympy [A]  time = 0.25, size = 7, normalized size = 0.88 \[ 2 \sin {\left (\sqrt {x} \right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(x**(1/2))/x**(1/2),x)

[Out]

2*sin(sqrt(x))

________________________________________________________________________________________